<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Rails::Railtie::Configurable::ClassMethods</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../css/github.css" type="text/css" media="screen" />
<script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Module</span> 
            Rails::Railtie::Configurable::ClassMethods 
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../../files/railties/lib/rails/railtie/configurable_rb.html">railties/lib/rails/railtie/configurable.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>C</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ClassMethods.html#method-i-configure">configure</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>I</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ClassMethods.html#method-i-inherited">inherited</a>,
              </li>
            
              
              <li>
                <a href="ClassMethods.html#method-i-instance">instance</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>M</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ClassMethods.html#method-i-method_missing">method_missing</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>R</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ClassMethods.html#method-i-respond_to-3F">respond_to?</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    


    <!-- Methods -->
        
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-configure">
            
              <b>configure</b>(&amp;block)
            
            <a href="ClassMethods.html#method-i-configure" name="method-i-configure" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-configure_source')" id="l_method-i-configure_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/5ad7f8ab418f0c760dbb584f7c78d94ce32e9ee3/railties/lib/rails/railtie/configurable.rb#L23" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-configure_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/railtie/configurable.rb, line 23</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">configure</span>(&amp;<span class="ruby-identifier">block</span>)
  <span class="ruby-identifier">class_eval</span>(&amp;<span class="ruby-identifier">block</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-inherited">
            
              <b>inherited</b>(base)
            
            <a href="ClassMethods.html#method-i-inherited" name="method-i-inherited" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-inherited_source')" id="l_method-i-inherited_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/5ad7f8ab418f0c760dbb584f7c78d94ce32e9ee3/railties/lib/rails/railtie/configurable.rb#L11" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-inherited_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/railtie/configurable.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">inherited</span>(<span class="ruby-identifier">base</span>)
  <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;You cannot inherit from a #{self.superclass.name} child&quot;</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-instance">
            
              <b>instance</b>()
            
            <a href="ClassMethods.html#method-i-instance" name="method-i-instance" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-instance_source')" id="l_method-i-instance_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/5ad7f8ab418f0c760dbb584f7c78d94ce32e9ee3/railties/lib/rails/railtie/configurable.rb#L15" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-instance_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/railtie/configurable.rb, line 15</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">instance</span>
  <span class="ruby-ivar">@instance</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">new</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-respond_to-3F">
            
              <b>respond_to?</b>(*args)
            
            <a href="ClassMethods.html#method-i-respond_to-3F" name="method-i-respond_to-3F" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-respond_to-3F_source')" id="l_method-i-respond_to-3F_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/5ad7f8ab418f0c760dbb584f7c78d94ce32e9ee3/railties/lib/rails/railtie/configurable.rb#L19" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-respond_to-3F_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/railtie/configurable.rb, line 19</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">respond_to?</span>(*<span class="ruby-identifier">args</span>)
  <span class="ruby-keyword">super</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">respond_to?</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
              
      <div class="sectiontitle">Instance Protected methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-method_missing">
            
              <b>method_missing</b>(*args, &amp;block)
            
            <a href="ClassMethods.html#method-i-method_missing" name="method-i-method_missing" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-method_missing_source')" id="l_method-i-method_missing_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/5ad7f8ab418f0c760dbb584f7c78d94ce32e9ee3/railties/lib/rails/railtie/configurable.rb#L29" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-method_missing_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails/railtie/configurable.rb, line 29</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">method_missing</span>(*<span class="ruby-identifier">args</span>, &amp;<span class="ruby-identifier">block</span>)
  <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">send</span>(*<span class="ruby-identifier">args</span>, &amp;<span class="ruby-identifier">block</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    